package com.baizhi.wd.view;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.RequestDispatcher;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.baizhi.wd.entity.Person;

public class AddPersonView extends HttpServlet {
	public void service(HttpServletRequest request,HttpServletResponse response) throws IOException{
		
		// 1 设置内容类型
		response.setContentType("text/html");
		response.setCharacterEncoding("utf-8");
        // 2 获取输出流
		PrintWriter out = response.getWriter();
		out.println("<html>");
		out.println("<head><title>项目2</title></head>");
		out.println("<body>");
		out.println("添加成功");
		out.println("<a href='/telbook_2/per/queryAllAction'>查所有</a>");
		out.println("</body>");
		out.println("</html>");
		
	}
}